home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / bsrc_260.zip / INCLUDE.ZIP / KEYFNCS.H < prev    next >
Text File  |  1996-02-21  |  11KB  |  161 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                                                                          */
  14. /*                 Function definitions used in BinkleyTerm                 */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*--------------------------------------------------------------------------*/
  43.  
  44. /* Unattended mode command keys */
  45.  
  46. #define F_UN_BSE            0xfe00            /* Base of unattended mode fns  */
  47. #define F_UN_ANSWER            (F_UN_BSE+0x00)    /* Send answer string to modem  */
  48. #define F_UN_REINITMODEM    (F_UN_BSE+0x01)    /* User wants to reinit modem   */
  49. #define F_UN_CALLRIGHTNOW    (F_UN_BSE+0x02)    /* Call next eligible node now  */
  50. #define F_UN_POLLBOSS        (F_UN_BSE+0x03)    /* Poll the bossnode            */
  51. #define F_UN_POLLNODE        (F_UN_BSE+0x04)    /* Poll a specified node        */
  52. #define F_UN_POLLPKT        (F_UN_BSE+0x05)    /* Queue a poll to a node       */
  53.  
  54. #define F_UN_TERMINALMODE    (F_UN_BSE+0x10)    /* Exit mailer, enter terminal  */
  55. #define F_UN_MSGEDITOR        (F_UN_BSE+0x11)    /* Spawn user's editor          */
  56. #define F_UN_EXITBINK        (F_UN_BSE+0x12)    /* Exit BinkleyTerm             */
  57.  
  58. #define F_UN_FUNKEY1        (F_UN_BSE+0x21)    /* Exit with errorlevel 10      */
  59. #define F_UN_FUNKEY2        (F_UN_BSE+0x22)    /* Exit with errorlevel 20      */
  60. #define F_UN_FUNKEY3        (F_UN_BSE+0x23)    /* Exit with errorlevel 30      */
  61. #define F_UN_FUNKEY4        (F_UN_BSE+0x24)    /* Exit with errorlevel 40      */
  62. #define F_UN_FUNKEY5        (F_UN_BSE+0x25)    /* Exit with errorlevel 50      */
  63. #define F_UN_FUNKEY6        (F_UN_BSE+0x26)    /* Exit with errorlevel 60      */
  64. #define F_UN_FUNKEY7        (F_UN_BSE+0x27)    /* Exit with errorlevel 70      */
  65. #define F_UN_FUNKEY8        (F_UN_BSE+0x28)    /* Exit with errorlevel 80      */
  66. #define F_UN_FUNKEY9        (F_UN_BSE+0x29)    /* Exit with errorlevel 90      */
  67. #define F_UN_FUNKEY10        (F_UN_BSE+0x2a)    /* Exit with errorlevel 100     */
  68.  
  69. #define F_UN_SHELL            (F_UN_BSE+0x30)    /* Shell to OS command line     */
  70. #define F_UN_SHELL1            (F_UN_BSE+0x31)    /* Spawn user-command 1         */
  71. #define F_UN_SHELL2            (F_UN_BSE+0x32)    /* Spawn user-command 2         */
  72. #define F_UN_SHELL3            (F_UN_BSE+0x33)    /* Spawn user-command 3         */
  73. #define F_UN_SHELL4            (F_UN_BSE+0x34)    /* Spawn user-command 4         */
  74. #define F_UN_SHELL5            (F_UN_BSE+0x35)    /* Spawn user-command 5         */
  75. #define F_UN_SHELL6            (F_UN_BSE+0x36)    /* Spawn user-command 6         */
  76. #define F_UN_SHELL7            (F_UN_BSE+0x37)    /* Spawn user-command 7         */
  77. #define F_UN_SHELL8            (F_UN_BSE+0x38)    /* Spawn user-command 8         */
  78. #define F_UN_SHELL9            (F_UN_BSE+0x39)    /* Spawn user-command 9         */
  79.  
  80. #define F_UN_GETFILE        (F_UN_BSE+0x40)    /* Get a file from somebody     */
  81. #define F_UN_SENDFILE        (F_UN_BSE+0x41)    /* Send a file to somebody      */
  82. #define F_UN_KILLNODESMAIL    (F_UN_BSE+0x42)    /* Kill all mail to somebody    */
  83.  
  84. #define F_UN_ZOOM            (F_UN_BSE+0x43)    /* Zoom Outbound                */
  85.  
  86. #define F_UN_HELPSCREEN        (F_UN_BSE+0x50)    /* Bring up mailer helpscreen   */
  87. #define F_UN_BLANKSCREEN    (F_UN_BSE+0x51)    /* Force the screen to blank    */
  88. #define F_UN_REPAINTSCREEN    (F_UN_BSE+0x52)    /* Repaint the hosed screen     */
  89.  
  90. #define F_UN_CLEARHIST        (F_UN_BSE+0x60)    /* Reset Today-At-A-Glance      */
  91. #define F_UN_RESTARTEVENTS    (F_UN_BSE+0x61)    /* Restart nonforced events     */
  92. #define F_UN_QUITTHISEVENT    (F_UN_BSE+0x62)    /* End this event now           */
  93.  
  94. #define F_ZOOM_KILLNODE        (F_UN_BSE+0x64) /* kill                         */
  95. #define F_ZOOM_ADDRESS        (F_UN_BSE+0x65)    /* readdress                    */
  96. #define F_ZOOM_CRASH        (F_UN_BSE+0x66)    /* crash                        */
  97. #define F_ZOOM_DIRECT        (F_UN_BSE+0x67)    /* direct                       */
  98. #define F_ZOOM_GET            (F_UN_BSE+0x68)    /* get file                     */
  99. #define F_ZOOM_HOLD            (F_UN_BSE+0x69)    /* hold                         */
  100. #define F_ZOOM_KILLTRIES    (F_UN_BSE+0x6a)    /* kill dial tries              */
  101. #define F_ZOOM_NORMAL        (F_UN_BSE+0x6b)    /* normal                       */
  102. #define F_ZOOM_POLL            (F_UN_BSE+0x6c)    /* poll                         */
  103. #define F_ZOOM_KILLREQ        (F_UN_BSE+0x6d)    /* kill request                 */
  104. #define F_ZOOM_SEND            (F_UN_BSE+0x6e)    /* send file                    */
  105. #define F_ZOOM_STOPMAIL        (F_UN_BSE+0x6f)    /* stop mail                    */
  106.  
  107. #define F_PEND_DNAR            (F_UN_BSE+0x70)    /* Scroll Pending down 1 line   */
  108. #define F_PEND_UPAR            (F_UN_BSE+0x71)    /* Scroll Pending up 1 line     */
  109. #define F_PEND_PGDN            (F_UN_BSE+0x72)    /* Scroll Pending down 4 lines  */
  110. #define F_PEND_PGUP            (F_UN_BSE+0x73)    /* Scroll Pending up 4 lines    */
  111. #define F_PEND_HOME            (F_UN_BSE+0x74)    /* Scroll Pending to top        */
  112. #define F_PEND_END            (F_UN_BSE+0x75)    /* Scroll Pending to bottom     */
  113.  
  114. /* Recent Activity window scrolling */
  115.  
  116. #define F_CALLWIN_DNAR        (F_UN_BSE+0x76) /* Scroll RA down 1 line        */
  117. #define F_CALLWIN_UPAR        (F_UN_BSE+0x77) /* Scroll RA up 1 line          */
  118. #define F_CALLWIN_PGDN        (F_UN_BSE+0x78) /* Scroll RA down 9 lines       */
  119. #define F_CALLWIN_PGUP        (F_UN_BSE+0x79) /* Scroll RA up 9 lines         */
  120. #define F_CALLWIN_TOP        (F_UN_BSE+0x7a) /* Scroll RA to top             */
  121. #define F_CALLWIN_END        (F_UN_BSE+0x7b) /* Scroll RA to end             */
  122.  
  123. /* Terminal mode command keys */
  124.  
  125. #define F_TRM_BS            0xfd00            /* Base for all term mode fns   */
  126. #define F_TERM_SETBAUD        (F_TRM_BS+0x00)    /* Set baudrate on this port    */
  127. #define F_TERM_COMMCONFIG    (F_TRM_BS+0x01)    /* Set data and stop bits       */
  128. #define F_TERM_DOBREAK        (F_TRM_BS+0x02)    /* Toggle break on/off          */
  129. #define F_TERM_CHANGEPORT    (F_TRM_BS+0x03)    /* Change the port we're using  */
  130.  
  131. #define F_TERM_REINITMODEM    (F_TRM_BS+0x10)    /* Send init string to modem    */
  132. #define F_TERM_HANGUP        (F_TRM_BS+0x11)    /* Drop DTR to hang up modem    */
  133.  
  134. #define F_TERM_DIALOUT        (F_TRM_BS+0x20)    /* Dial a specified number      */
  135. #define F_TERM_DIALGROUP    (F_TRM_BS+0x21)    /* Dial a hunt group            */
  136. #define F_TERM_POLLBOSS        (F_TRM_BS+0x22)    /* Poll the bossnode            */
  137. #define F_TERM_POLLNODE        (F_TRM_BS+0x23)    /* Poll a specified node        */
  138.  
  139. #define F_TERM_DOWNLOAD        (F_TRM_BS+0x30)    /* Download a file from remote  */
  140. #define F_TERM_UPLOAD        (F_TRM_BS+0x31)    /* Upload a file to remote      */
  141. #define F_TERM_CAPTUREFILE    (F_TRM_BS+0x32)    /* Open/close text capture file */
  142. #define F_TERM_GATEWAYMODE    (F_TRM_BS+0x33)    /* Don't map keyboard           */
  143.  
  144. #define F_TERM_MACRO1        (F_TRM_BS+0x41)    /* Transmit user string 1       */
  145. #define F_TERM_MACRO2        (F_TRM_BS+0x42)    /* Transmit user string 2       */
  146. #define F_TERM_MACRO3        (F_TRM_BS+0x43)    /* Transmit user string 3       */
  147. #define F_TERM_MACRO4        (F_TRM_BS+0x44)    /* Transmit user string 4       */
  148. #define F_TERM_MACRO5        (F_TRM_BS+0x45)    /* Transmit user string 5       */
  149. #define F_TERM_MACRO6        (F_TRM_BS+0x46)    /* Transmit user string 6       */
  150. #define F_TERM_MACRO7        (F_TRM_BS+0x47)    /* Transmit user string 7       */
  151. #define F_TERM_MACRO8        (F_TRM_BS+0x48)    /* Transmit user string 8       */
  152. #define F_TERM_MACRO9        (F_TRM_BS+0x49)    /* Transmit user string 9       */
  153.  
  154. #define F_TERM_CLEARSCREEN    (F_TRM_BS+0x50)    /* Erase the messy screen       */
  155. #define F_TERM_HELPSCREEN    (F_TRM_BS+0x51)    /* Bring up terminal helpscreen */
  156. #define F_TERM_VERSION        (F_TRM_BS+0x52)    /* Display Bink version         */
  157.  
  158. #define F_TERM_MAILERMODE    (F_TRM_BS+0x60)    /* Exit terminal, enter mailer  */
  159. #define F_TERM_EXITBINK        (F_TRM_BS+0x61)    /* Exit BinkleyTerm             */
  160. #define F_TERM_SHELL        (F_TRM_BS+0x62)    /* Shell to OS command line     */
  161.